#! /bin/bash
media=$(./mediaTemp.sh $1)

varianca=$(
for valor in $(cat $1 | cut -d" " -f2)
do
parte=$(echo "scale=5; ($valor-$media)^2" | bc)
echo $parte
done | tr "\n" "+" | sed "s/+$//g" 
)

echo "scale=5; sqrt(($varianca)/5)" | bc
